/*<!-- saved from url=(0013)about:internet -->*/
//*** Initializations

var hour = new Array("5:00","5:30","6:00","6:30","7:00","7:30","8:00","8:30","9:00"
		,"9:30","10:00","10:30","11:00","11:30","12:00","12:30","13:00","13:30","14:00",
		"14:30","15:00","15:30","16:00","16:30","17:00","17:30","18:00","18:30",
		"19:00","19:30","20:00","20:30","21:00","21:30","22:00","22:30","23:00","23:30",
		"00:00","00:30","1:00","1:30","2:00","2:30","3:00","3:30","4:00","4:30");
//Adds an option to a select box
function addOption(selectbox,text,value)
{
        var optn = document.createElement("OPTION");
        optn.text = text;
        optn.value = value;
        selectbox.options.add(optn);
}

//Adds all appropriate field options
function addOptions_list() {
        //Adding all month options
        for (var i=0; i < hour.length; ++i){
        
        addOption(document.forms["myForm"]["hour"], hour[i], hour[i]);
        }
} 

//Checks if a string is not a word or number (contains special chars except 'space')
//returns true -  If special characters exist
//returns false - If only letters or digits exist
function notWordOrNum(str) 
{       
        return /[^a-zA-Z0-9 ]/.test(str);
}



function validateForm()
{
		//Initializing isOK flag
		isOK = true;
		
		//Checking all fields
        val_fname();
        val_lname();
        val_id();
        val_email();
        val_city();
        val_zipcode();
        val_add();
        val_un();
        val_pass();
        val_confpass();

        if(isOK==false)
        {
        	alert("One or more of the detail fields are invalid","Invalid fields");
        	return false;
        }
        

}